//
//  UIColorExtension.swift
//  YiZhangGui
//
//  Created by 卢逢卫 on 2024/4/8.
//

import UIKit

extension UIColor {
    static func cn_RGB(r: CGFloat, g: CGFloat, b: CGFloat, alpha: CGFloat) -> UIColor {
        let red = r / 255.0
        let green = g / 255.0
        let blue = b / 255.0
        
        return UIColor(red: red, green: green, blue: blue, alpha: alpha)
    }
}

//// 使用示例
//let color = UIColor.cn_RGB(r: 230, g: 243, b: 254, alpha: 1.0)
